package com.feri.rbacsys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @TableName t_product_amount
 */
@TableName(value = "t_product_amount")
@Data
@NoArgsConstructor
public class ProductAmount implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     *
     */
    private Integer productId;

    /**
     *
     */
    private Integer stock;

    public ProductAmount(Integer productId, Integer stock) {
        this.productId = productId;
        this.stock = stock;
    }
}